import numpy as np
import json
import pandas as pd
import sys
json_p = sys.argv[1]
with open(json_p, 'r') as f:
    data = json.load(f)
df = pd.DataFrame(data)
df.to_csv(json_p+".csv", index=False)  # 如果不想保存索引，使用 index=False
df.to_excel(json_p+'.xlsx', index=False)
